package net.easyjava.base.service.mongodb;

import net.easyjava.base.bean.mongodb.RequestLogBean;
import net.easyjava.tools.page.Page;

import java.util.List;

/**
 * Created by wenxiaoning on 15/12/20.
 */
public interface RequestLogService {
    /**
     * 保存request日志
     * @return
     */
    public RequestLogBean save(RequestLogBean requestLogBean);

    /**
     * 查询一条request日志记录
     * @param id
     * @return
     */
    public RequestLogBean find(String id);

    /**
     * 修改日志
     * @param requestLogBean
     * @return
     */
    public RequestLogBean update(RequestLogBean requestLogBean);

    /**
     * 查询request日志列表
     * @return
     */
    public Page<RequestLogBean> find(int pageNum,int pageSize);
}
